from django.urls import path

from notebook import views

# 定义 app_name，在父 urlpatterns 内的 include 导入时传 namespace，值和它一样
app_name = "notebook"
urlpatterns = [
    path("", views.notebook_list_view, name="notebook_list"),
    path("page/<int:page>/", views.notebook_list_page_view, name="notebook_list_page"),
    path("content/<int:id>/", views.notebook_content_view, name="notebook_content"),
    path("categories/", views.NotebookCategoryView.as_view(), name="notebook_categories"),
]
